<nav class="navbar navbar-default nav-top-head" style="margin-bottom: 0px;">
<div class="container">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
		        <span class="sr-only">Toggle navigation</span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		    </button>
			<a href="/" class="navbar-brand nav-top-padding">
				<img src="/images/miao2.png" class="nav-top-icon">
				pasupasu
			</a>
		</div>
		<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<ul class="nav navbar-nav navbar-right">
				<% if(user=='' || user==null) {%>
					<li>
						<a href="/log/login" >登陆</a>
					</li>
					<li>
						<a href="/log/reg" >注册</a>
					</li>
				<%} else {%>
					<li class="nav-hover">
						<img id="uH"  src="<%-user.headImgUrl%>" onclick ="window.open('/userhome/'+
						'<%-user._id%>');"  class="img-circle nav-head-log">
						<div id="nav-more-head">
							<div id="nav-more-headin">
								<p id="nav-more-name"><%-user.name%></p>
								<div class="nav-more-lv">
									<span class="nav-more-lvtext">等级:</span>
										<div id="nav-move-lvnum">0</div>
										<div class="nav-more-point">
										<div class="nav-move-bar">
											<div id="nav-move-lvpoint"></div>
										</div>
										</div>
								</div>
								<div class="nav-more-user">
									<a href="/user/">
										<span  class="glyphicon glyphicon-user"></span>个人中心
									</a>
									<a href="/user/message">
										<span class="glyphicon glyphicon-comment"></span>我的消息
									</a>
								</div>
								<div id="nav-more-outdiv">
									<a href="#" id="nav-more-out">退出</a>
								</div>
							</div>
						</div>
					</li>
					<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">投稿</a>
						<ul class="dropdown-menu">
							<li>
								<a href="/user/upvideo">视频投稿</a>
							</li>
							<li>
								<a href="/articles/post">文章投稿</a>
							</li>
						</ul>
					</li>
					<li>
						<a href="/userhome/<%-user._id%>/keep">收藏夹</a>
					</li>
				<%}%>
			</ul>
			<form class="navbar-form navbar-left" role="search" method="get" action="/select/all">
				<div class="form-group">
					<input type="text"  class="form-control" placeholder="搜索" name="keyword">
				</div>
				<button type="submit" class="btn btn-info active">
					<span class="glyphicon glyphicon-search"></span>
				</button>
			</form>
		</div>
	</div>
</div>
</nav>